package com.zoe.onelink.governance.gateway.model;

import lombok.Data;

import java.time.Duration;

/**
 * <p>标题: Spring Cloud Gateway 路由精简格式</p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2022</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2022-10-20
 */
@Data
public class SmartGatewayRoute {

    /**
     * 路径,例如: /api/**
     */
    private String path;

    /**
     * 连接创建超时时间(默认10秒)
     */
    private Duration connectTimeout = Duration.ofSeconds(10);

    /**
     * 响应超时时间(默认30秒)
     */
    private Duration responseTimeout = Duration.ofSeconds(30);


}
